﻿CREATE TRIGGER CommittessVillages_Tracking_Delete
ON [dbo].[CommittessVillages] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.CommittessVillages_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.CommittessVillages_Tracking s JOIN DELETED i
    ON s.CommitteID = i.CommitteID AND s.VillageID = i.VillageID
END











